package jp.fsoriented.toishi.util;

import android.util.Log;

import com.deploygate.sdk.DeployGate;

/**
 * あんみつ用ログクラス
 * 
 * @author LapisCactus
 * 
 */
public class L {

	private final static String LOG_TAG = "Anmitsu";

	public static final void d(String log) {
		Log.d(LOG_TAG, log);
	}

	public static final void i(String log) {
		Log.i(LOG_TAG, log);
	}

	public static final void w(String log) {
		Log.w(LOG_TAG, log);
	}

	public static final void w(String log, Throwable e) {
		Log.w(LOG_TAG, log, e);
	}

	public static final void e(String log) {
		Log.e(LOG_TAG, log);
		DeployGate.logError(log);
	}

	public static final void e(String log, Throwable e) {
		Log.e(LOG_TAG, log, e);
		DeployGate.logError(log + e.getMessage());
	}

	public static final void onCreate(String log) {
		Log.i(LOG_TAG, "[LifeCycle]" + log + " onCreate");
	}

	public static final void onResume(String log) {
		Log.i(LOG_TAG, "[LifeCycle]" + log + " onResume");
	}

	public static final void onPause(String log) {
		Log.i(LOG_TAG, "[LifeCycle]" + log + " onPause");
	}

	public static final void onDestroy(String log) {
		Log.i(LOG_TAG, "[LifeCycle]" + log + " onDestroy");
	}

	public static final void onNewIntent(String log) {
		Log.i(LOG_TAG, "[LifeCycle]" + log + " onNewIntent");
	}

	public static final void onResult(String log) {
		Log.i(LOG_TAG, "[LifeCycle]" + log + " onResult");
	}
}
